package com.suncnpap.library.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.app.util.database.mybatis.Page;
import com.suncnpap.library.service.CollectionLocationService;
import com.suncnpap.library.mapper.CollectionLocationMapper;
import com.suncnpap.library.model.CollectionLocation;

/** 
 * 说明： 馆藏位置Service实现类
 * @version
 */
@Service("collectionLocationService")
public class CollectionLocationServiceImpl implements CollectionLocationService{

	
	@Autowired
	CollectionLocationMapper collectionLocationMapper;
	
	@Override
	public void add(CollectionLocation obj) {
		// TODO Auto-generated method stub
		collectionLocationMapper.add(obj);
	}

	@Override
	public void update(CollectionLocation obj) {
		// TODO Auto-generated method stub
		collectionLocationMapper.edit(obj);
	}

	@Override
	public void deleteById(String strId) {
		// TODO Auto-generated method stub
		collectionLocationMapper.deleteById(strId);
		
	}
	@Override
	public void deleteMore(String[] strIds) {
		// TODO Auto-generated method stub
		collectionLocationMapper.deleteMore(strIds);
	}

	@Override
	public Page list(Page page) {
		// TODO Auto-generated method stub
		List<CollectionLocation> list = collectionLocationMapper.datalistPage(page);
		page.setDataList(list);
		return page;
	}


	@Override
	public int findCount(Page page) {
		// TODO Auto-generated method stub
		return collectionLocationMapper.findCount(page);
	}

	@Override
	public CollectionLocation findById(String strId) {
		// TODO Auto-generated method stub
		return collectionLocationMapper.findById(strId);
	}
	
}

